home *** CD-ROM | disk | FTP | other *** search
- !BootA - RISC OS front-end for non-wimp-based applications
- ------------------------------------------------------------
-
- Note: The term 'client application' is used below to refer to a
- non-wimp-based application which is 'installed' via the
- !BootA front-end.
-
- The term 'client icon' is used for the client application's
- icon installed by !BootA on the icon bar.
-
-
- Starting !BootA
- ---------------
-
- !BootA is started automatically when you install a client
- application by double-clicking on its icon in a directory viewer.
- You should double-click on the !BootA icon itself ONLY when you
- want to install the list of client applications specified in the
- !Init file (see 'Installing Client Applications Automatically'
- below).
-
-
- Installing a client application on the icon bar
- -----------------------------------------------
-
- Double-click on the icon for the application in the corresponding
- directory viewer. The client icon will be installed at the right
- of the icon bar and !BootA will be started if it is not already
- active.
-
-
- Running the client application
- ------------------------------
-
- Drag a file or directory icon to the client icon on the icon bar.
- This is equivalent to pressing f12 and then entering the
- following command:
-
- *RUN client-appl object
-
- where 'client-appl' is the fully qualified name of the client
- application directory and 'object' is the fully qualified name of
- the file or directory that was dragged.
-
- It is also possible to run the application by just clicking on
- the client icon, which is equivalent to the following command:
-
- *RUN client-appl
-
-
- Supplying additional command line input to the client application
- -----------------------------------------------------------------
-
- Click MENU over a client icon and chose the 'CmdOpts' option. A
- window will appear in which you can enter up to 50 characters of
- additional information to be passed to the client application.
- Press RETURN when you have finished entering the data. Dragging a
- file or directory to the client icon will now be equivalent to
- entering the following command:
-
- *RUN client-appl object cmdopts
-
- The additional information will typically be option flags. Once
- entered, the 'CmdOpts' data is retained as long as the client
- icon remains displayed on the icon bar. It can be updated at any
- time by choosing 'CmdOpts' again from the menu. An initial value
- for this 'CmdOpts' data can be supplied by creating a file called
- '!CmdOpts' in the client application directory (see supplying
- default CmdOpts information below).
-
-
- Removing a client application from the icon bar
- -----------------------------------------------
-
- Click MENU on the client icon and chose 'Quit' from the resulting
- menu. The icon will disappear from the icon bar. If it is the
- last client icon, !BootA itself will terminate.
-
-
- Terminating !BootA
- ------------------
-
- !BootA will terminate automatically when the last client icon is
- removed from the icon bar via the 'Quit' option from the menu.
- Alternatively, you can force !BootA to terminate by calling up a
- 'Task display' from the task icon (at the extreme right of the
- icon bar), clicking the mouse menu button on the display line for
- !BootA and chosing 'Quit' from the resulting menu. This will
- remove all client icons from the icon bar and terminate !BootA.
-
-
- !BootA Menu
- -----------
-
- Clicking MENU over a client icon will result in a menu with the
- following options:
-
- Info: which displays version information about !BootA.
-
- Help: which displays brief help text about the client
- application
-
- CmdOpts: which causes a dialogue window to appear for entering
- or updating the additional input to be passed to the
- client application.
-
- Quit: which removes the client icon; if this is the only
- client icon to be displayed !BootA will terminate.
-
-
- Client Application Directory Format
- -----------------------------------
-
- The client application directory must contain at least two files:
- the !Run file and the !RunA file. The !Run file contains the
- commands to start up !BootA and install the client icon. These
- commands will normally be:
-
- If "<BootA$Appl>" = "" then Error BootA cannot be found
- Set BootAclient <Obey$Dir>
- Run <BootA$Appl> <BootAclient>
-
- Note that this relies on the variable BootA$Appl being defined.
- This is set by the !Boot file in the !BootA application directory
- so that before double clicking on any client application, a
- directory viewer should be opened for the directory containing
- !BootA. The easiest way to do this is to place all the client
- applications in the same directory as !BootA itself.
-
- The !RunA file should contain the commands to run the client
- application itself and so corresponds to the !Run file for a
- normal RISC OS application. The core of this file will normally
- be a command such as:
-
- Run <Obey$Dir>.!RunImage %*0
-
-
- Installing Client Applications Automatically
- --------------------------------------------
-
- One or more !BootA client applications can be installed
- automatically at Desktop start-up time by including a single
- command in the DeskTop initialisation file as described in the
- Archimedes User Guide. This command should start the !BootA
- application itself, specifying the required client applications
- as arguments:
-
- e.g. Run adfs::HardDisc4.$.!BootA
- adfs::HardDisc4.$.!Lock adfs::HardDisc4.$.!Unlock
-
- The !BootA application will also accept an initialisation file
- containing a list of client applications to be installed:
-
- e.g. Run adfs::HardDisc4.$.!Boot
- -file adfs::HardDisc4.$.!Boot.!Auto
-
- The !BootA application directory as distributed includes a file
- called '!Auto' which contains a suggested (but ONLY suggested)
- list of client applications for starting automatically. There is
- also a file called '!Init' which contains a list of all the
- example client applications. If you double click on the !BootA
- icon, you will install all the client applications in this latter
- list.
-
-
- Supplying default 'CmdOpts' information
- ---------------------------------------
-
- When !BootA 'installs' a client application, it looks in the
- application directory for a file called '!CmdOpts'. If found, it
- will set the 'CmdOpts' data for the application from the file
- contents (only first 50 characters will be used). The data in the
- file should not contain any newline or other control characters.
-
-
- Help support
- ------------
-
- !BootA provides brief help text when the 'Help' option is chosen
- from the menu. It also supports the RISC OS !Help application by
- providing the same help message when !Help is active and the
- mouse pointer is over the client icon.
-
- A standard help message is supplied but a customised message can
- be provided for a specific client application by including a file
- called '!HelpMsg' in that application's directory which can
- contain up to 231 characters of help message. More than 231 will
- be truncated. The text should be created without any newline or
- other control characters.
-
-
- BootA$Object system variable
- ----------------------------
-
- !BootA sets this system variable to the following values before
- running the client application:
-
- FILE meaning that a file icon was dragged to the client
- icon.
-
- DIR meaning that a directory icon was dragged to the
- client icon.
-
- APPL meaning that an application directory icon was
- dragged to the client icon.
-
- NONE meaning that the client application was started by
- clicking on the client icon and no file or directory
- icon was dragged to it.
-
- This system variable can be tested in the client applications
- !RunA file to check for error situations and issue the
- appropriate message.
-
-
- BootA$Type system variable
- --------------------------
-
- !BootA sets this system variable to the type of the file that was
- dragged to the client icon before running the client application.
- This type will be the same as that shown in directory viewer in
- full display mode - i.e. either 3 digit hex or a filetype name.
- If a directory was dragged, BootA$Type is set to 'DIR'. If the
- application was run by clicking on its icon (without dragging a
- file or directory to it), BootA$Type is set to 'NONE'.
-
-
- BootA$Dir system variable
- -------------------------
-
- !BootA sets this to the name of the directory containing the file
- that was dragged to the client icon, or if a directory was
- dragged, to the directory name. It will be set to '@' if the
- application was run by clicking on its icon without dragging any
- file or directory to it.
-
-
- BootA$Leaf system variable
- --------------------------
-
- If a file is dragged to the client icon, !BootA sets this
- variable to the leaf-name of the file. In all other cases
- (directory dragged or nothing dragged) it is set to a null
- string.
-
-
- BootA$CmdOpts system variable
- -----------------------------
-
- !BootA always sets this to the information specified via the
- 'CmdOpts' option in the menu (which is initially set from the
- contents of the !CmdOpts file in the application directory).
-
-